package com.example.service.impl;

import com.example.Dto.NcVarDto;
import com.example.mapper.*;
import com.example.pojo.NcPojo;
import com.example.service.WebNcService;
import com.example.util.MyConstants;
import org.springframework.stereotype.Service;
import ucar.nc2.*;
import ucar.nc2.dataset.NetcdfDataset;

import javax.annotation.Resource;
import java.io.IOException;
import java.util.*;


@Service
public class WebNcServiceImpl implements WebNcService {

    @Resource
    private NcBaseMapper ncBaseMapper;

    @Override
    public List getDataByCdnId(String cdnId) {
        List<NcVarDto> dtos = ncBaseMapper.selectAllByCdnId(Long.valueOf(cdnId));
        return dtos;
    }
}
